<?
$collection=$content->collection;
$cat_contarray=$collection->get_catcontainer_array();
foreach ($cat_contarray as $catcont){
	echo '<div class="containerbox contcategory">';
	echo '<div class="header">';
	$params=array();
	$params[]=array('title'=>'change Categories', 'link'=>CONTDIR.'collectioncontent/form/addcategories/'.$content->id.'?type='.$catcont);
	echo sigi::addbox($params);
	echo $catcont;
	echo '</div>';
	echo '<div class="container">';
	$content->reload();
	$all=$content->where('type', $catcont)->contcategories;
	$count=0;
	foreach($all as $cat){
		echo '<div class="elm">';
		echo $cat->title;	
		echo '</div>';
	$count++;
	}
	echo '<div class="clear"></div>';
	echo '</div>';
	echo '</div>';
}
?>